﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Manicure.Entity
{
    public class EBanner
    {
        #region Campos e Propriedades
        public int IdCliente { get; set; }
        public int IdBanner { get; set; }
        public string Banner { get; set; }
        public string ImgBanner { get; set; }
        public string Texto { get; set; }
        #endregion

        #region Construtores
        public EBanner()
        {
            IdCliente = 0;
            IdBanner = 0;
            Banner = string.Empty;
            ImgBanner = string.Empty;
            Texto = string.Empty;
        }
        public EBanner(DataRow dtRow)
        {
            if (dtRow["Id_Cliente"] != null) { IdCliente = Convert.ToInt32(dtRow["Id_Cliente"]); }
            if (dtRow["Id_Banner"] != null) { IdBanner = Convert.ToInt32(dtRow["Id_Banner"]); }
            if (dtRow["Banner"] != null) { Banner = dtRow["Banner"].ToString(); }
            if (dtRow["Imagem_Banner"] != null) { ImgBanner = dtRow["Imagem_Banner"].ToString(); }
            if (dtRow["Texto"] != null) { Texto = dtRow["Texto"].ToString(); }
        }
        #endregion
    }
}
